<div class="hero-unit">
    <h1><?php echo sprintf($this->translate('Administración de %sAsistencia%s'), '<span class="zf-green">', '</span>') ?></h1>
    <p><?php //echo sprintf($this->translate('Congratulations! You have successfully installed the %sZF2 Skeleton Application%s. You are currently running Zend Framework version %s. This skeleton can serve as a simple starting point for you to begin building your application on ZF2.'), '<a href="https://github.com/zendframework/ZendSkeletonApplication" target="_blank">', '</a>', \Zend\Version\Version::VERSION) ?></p>
    <p><strong>Universidad Católica</strong></p>
    <p align="right">Logueado como: <font color="orange"><?php if ($authservice->hasIdentity()) echo $this->escapeHtml($authservice->getIdentity()); ?></font></p>
</div>
<?php $display = true; ?>
<div class="row">

    <?php $display = $roleservice->hasPermission($user_id,'usuarios','index'); ?>
    <?php if ($display) { ?>
    <div class="span4">
        <h2><?php echo $this->translate('Usuarios') ?></h2>
        <p><?php echo $this->translate('Este modulo permite agregar, editar y eliminar usuarios. Esto incluye: actualizar datos, cambiar la contraseña de los mismos, definir uno o más roles.') ?></p>
        <p><a class="btn btn-success"  <a href="<?php echo $this->url('usuarios', array('action'=>'index'));?>">><?php echo $this->translate('Administrar Usuarios') ?> &raquo;</a></p>
    </div>
    <?php } ?>

    <?php $display = $roleservice->hasPermission($user_id,'roles','index'); ?>
    <?php if ($display) { ?>
    <div class="span4">
        <h2><?php echo $this->translate('Perfiles y Permisos') ?></h2>
        <p><?php echo $this->translate('Este modulo permite agregar, editar y eliminar perfiles y permisos, los cuales posteriormente deben ser asignados a los usuarios según sea conveniente.') ?></p>
        <p><a class="btn btn-success" <a href="<?php echo $this->url('roles', array('action'=>'index'));?>">><?php echo $this->translate('Administrar Roles') ?> &raquo;</a></p>
    </div>
    <?php } ?>

    <?php $display = $roleservice->hasPermission($user_id,'cursos','index'); ?>
    <?php if ($display) { ?>
    <div class="span4">
        <h2><?php echo $this->translate('Cursos') ?></h2>
        <p><?php echo sprintf($this->translate('LINK example -> %son GitHub%s. The site is currently live and currently contains a list of some of the modules already available for ZF2.'), '<a href="https://github.com/zendframework/modules.zendframework.com">', '</a>') ?></p>
        <p><a class="btn btn-success" href="http://modules.zendframework.com/" target="_blank"><?php echo $this->translate('Seguimiento de Cursos') ?> &raquo;</a></p>
   </div>
   <?php } ?>

   <?php $display = $roleservice->hasPermission($user_id,'asistencia','index'); ?>
   <?php if ($display) { ?>
   <div class="span4">
       <h2><?php echo $this->translate('Asistencia') ?></h2>
       <p><?php echo sprintf($this->translate('You may subscribe and post questions to the %smailing lists%s.<br><br><br>'), '<a href="irc://irc.freenode.net/zftalk">', '</a>', '<a href="http://framework.zend.com/wiki/display/ZFDEV/Mailing+Lists">', '</a>') ?></p>
       <p><a class="btn btn-success" href="http://webchat.freenode.net?channels=zftalk" target="_blank"><?php echo $this->translate('Asistencia por Alumno') ?> &raquo;</a></p>
   </div>
   <?php } ?>

   <?php $display = $roleservice->hasPermission($user_id,'reportes','index'); ?>
   <?php if ($display) { ?>
   <div class="span4">
       <br><br>
       <h2><?php echo $this->translate('Reportes') ?></h2>
       <p><?php echo $this->translate('Reportes Estadísticos de Asistencia') ?></p>

       <p><a class="btn btn-success" href="http://webchat.freenode.net?channels=zftalk" target="_blank"><?php echo $this->translate('Reportes de Asistencia') ?> &raquo;</a></p>
   </div>
   <?php } ?>

</div>
